namespace Digitalmes.Common.Workflows;

/// <summary>
/// 节点之间的边缘连线。
/// </summary>
public sealed class WorkflowEdge
{
    /// <summary>
    /// 源步骤 Id
    /// </summary>
    public string SourceStepId { get; init; }

    /// <summary>
    /// 目标步骤函数对象
    /// </summary>
    public WorkflowFunctionTarget OutputTarget { get; init; }

    public WorkflowEdge(string sourceStepId, WorkflowFunctionTarget outputTarget)
    {
        SourceStepId = sourceStepId;
        OutputTarget = outputTarget;
    }
}
